<%--
  Created by IntelliJ IDEA.
  User: Ken
  Date: 2022/3/29
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>管理员注册</title>
    <link rel="stylesheet" href="css/login.css"/>
</head>
<body>
<div class="title_div">
    <h1>学生管理系统-管理端注册</h1>
</div>

<%--<%
    //获得Servlet的响应状态
    String status = request.getParameter("status");
%>--%>

<div class="core_div">
    <form action="registerfile" method="post" enctype="multipart/form-data">
        <table>
            <tr>
                <td>头像</td>
                <td>
                    <input name="file" type="file" />
                </td>
            </tr>
            <tr>
                <td>用户名</td>
                <td>
                    <input name="username" placeholder="请输入用户名"/>
                    <c:if test="${param.status == '2'}">
                        <span class="error">用户名不能为空</span>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="password" name="password" placeholder="请输入密码"/></td>
            </tr>
            <tr>
                <td>重复密码</td>
                <td>
                    <input type="password" name="againpassword" placeholder="请输入密码"/>
                    <c:if test="${param.status == '1'}">
                        <span class="error">两次密码输入不相同</span>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td>真实姓名</td>
                <td><input name="name" placeholder="请输入密码"/></td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    男：<input type="radio" name="sex" value="男" checked/>
                    女：<input type="radio" name="sex" value="女"/>
                </td>
            </tr>
            <tr>
                <td>生日</td>
                <td><input type="date" name="birthday"/></td>
            </tr>
            <tr>
                <td>权限</td>
                <td>
                    <input type="checkbox" name="power" value="1"/>查看学生
                    <input type="checkbox" name="power" value="2"/>新增学生
                    <input type="checkbox" name="power" value="3"/>删除学生
                </td>
            </tr>
            <tr>
                <td>籍贯</td>
                <td>
                    <select name="jiguan">
                        <option value="1">广东省</option>
                        <option value="2">广西省</option>
                        <option value="3">湖南省</option>
                        <option value="4">湖北省</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <button type="submit">注册</button>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <button type="reset">重置</button>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
